package com.cyq.demo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.cyq.demo.utils.RedisUtils;

@RestController
@RequestMapping("/cyq")
public class WebController {

	@Autowired
	private  RedisUtils redis;
	@RequestMapping("/index")
	public String index() {
		redis.set("a", "a");
		String object = (String)redis.get("a");
		return object;
		
	}
}
